package com.example.websocketserver.controller;

import com.example.websocketserver.pojo.EurekaMessage;
import com.example.websocketserver.service.EurekaService;
import com.example.websocketserver.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class EurekaController {

    @Autowired
    private EurekaService eurekaService;

    //查询
    @RequestMapping("/getServicesList")
    public List<EurekaMessage> getServicesList() {
        List<EurekaMessage> list = eurekaService.getServicesList();
        return list;
    }


}
